var UIToastr = function () {
    
    return {

        ShowToaster: function (toastType, title, msg) {
            toastr[toastType](msg, title); //success, info, warning, error
        },

        ShowSuccessToaster: function (toastType, title, msg, popupDivSelector) {
            if (toastType.toLowerCase() == "success") {
                toastr[toastType.toLowerCase()](msg, title); //success, info, warning, error
                //Close modal popup
                $(popupDivSelector).modal("hide");
            }
        },

        //main function to initiate the module
        init: function () {
            toastr.options = {
                "closeButton": true,
                "debug": true,
                "positionClass": "toast-bottom-right",
                "onclick": null,
                "showDuration": "1000",
                "hideDuration": "1000",
                "timeOut": "5000",
                "extendedTimeOut": "1000",
                "showEasing": "swing",
                "hideEasing": "linear",
                "showMethod": "fadeIn",
                "hideMethod": "fadeOut"
            }
        }

    };

}();